<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>帐号管理</title>
<link href="pages/css/common.css" rel="stylesheet"  />
<link href="../css/buttons.css" rel="stylesheet"  />
<script type="text/javascript" src="../js/util.js"></script>
<script type="text/javascript" src="../js/jquery-1.8.3.min.js"></script>
<script type="text/javascript">
	function deteleLine(obj,itemFlag){
		new $DeleteLine(obj).process(itemFlag,"about:balnk");
	}
	function to_page(page){
		if(page){
			$("#myPage").val(page);
		}
		document.forms["form1"].submit();
	}
	$(function() {
		$("#mySelect").change(function() {
			document.forms["form1"].submit();
		})
	})
</script>
</head>
<body>
<form name="form1" action="admin_account_list.action">
<table cellpadding="0" cellspacing="1" border="0" width="100%">
	<tr class="th">
		<td>编号</td>
		<td>帐号</td>
		<td>姓名</td>
		<td>角色</td>
		<td>&nbsp;</td>
	</tr>
	<s:iterator id="admin" value="pageResult.record">
	<tr class="tb">
		<td><s:property value='#admin.id'/></td>
		<td><s:property value='#admin.username'/></td>
		<td><s:property value='#admin.realname'/></td>
		<td><s:property value='#admin.adminRole.roleName'/></td>
		<td>
			<a href="./accounts-edit.jsp">编辑</a>&nbsp;
			<a href="javascript:void(0)" onclick="javascript:deteleLine(this,1)">删除</a>
		</td>
	</tr>
	</s:iterator>
	<tr class="tf" >
		<td class="right" colspan="5">
			<%@ include file="/html/page.jsp"%>
		</td>
	</tr>
</table>
</form>
</body>
</html>